﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WSServer
{
    public class WSAccessToken
    {
        public string access_token { get; set; }
        public DateTime createTime { get; set; }
        public int expired_in { get; set; }
        public bool isExpired
        {
            get
            {
                return (DateTime.Now - createTime).TotalSeconds >= expired_in;
            }
        }
    }
}
